<template>
	<view  style="position: relative;">
		<view class="title">
			<u-image src="/static/titleBg.png" width="276" height="60"></u-image>
			<view class="text">{{txt}}</view>
		</view>
		<view class="more" v-if="ismore">查看更多</view>
	</view>

</template>

<script>
	export default{
		props:{
			txt:{
		       type:String,
			   default:""
			},
			ismore:{
				type:Boolean,
				default:false
			}
		},
		data(){
			return{
				
			}
		}
	}
</script>

<style>
	.title{
		width: 276rpx;
		height: 60rpx;
		position: relative;
		margin: auto;
	}
	.more{
	  position: absolute;
	  right: 20rpx;
	  top: 10rpx;
	  color: #999;
	}
	.text{
		position: absolute;
		left:50%;top: 50%;
		transform: translate(-50%,-50%);
		font-size: 32rpx;
		font-weight: bold
	}
</style>
